package com.zzr.zzrbackend.mapper;

import com.zzr.zzrbackend.pojo.domain.AuthenticationCode;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AuthenticationCodeMapper {
    int insert(String phone, Integer code, Long time);

    List<AuthenticationCode> selectAllByPhone(String phone);


    int updateCodeByPhone(String phone, Integer code, Long time);

    Integer getCodeByPhone(String phone);

    Long getCodeTime(String phone);
}
